from langserve import RemoteRunnable

remote_chain = RemoteRunnable("http://localhost:8008/agent/")
res = remote_chain.invoke({
    "input": "LangSmith是什么?",
    "chat_history": []
})
print(res)
